package com.itheima;


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@Slf4j
@MapperScan("com.itheima.Dao")  //扫描Dao下所有文件当作Mapper
@ServletComponentScan   //扫描所有带有@WebFilter的类
@SpringBootApplication
@EnableTransactionManagement
public class ReggieApplication {
    public static void main(String[] args) {
        log.info("====项目启动====");
        SpringApplication.run(ReggieApplication.class);
    }
}
